﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="kichhoat.ascx.cs" Inherits="Thv.admin.Pages.kichhoat" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<br />
<table width="100%">
    <tr>
        <td style="width: 10%">
            &nbsp;</td>
        <td style="width: 80%">
            <dx:ASPxComboBox ID="cbCapbac" runat="server" 
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                ValueType="System.String">
                <Items>
                    <dx:ListEditItem Selected="True" Text="Thành Viên" Value="Thành Viên" />
                    <dx:ListEditItem Text="Cộng Tác Viên" Value="Cộng Tác Viên" />
                </Items>
                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                </LoadingPanelImage>
                <LoadingPanelStyle ImageSpacing="5px">
                </LoadingPanelStyle>
                <ButtonStyle Width="13px">
                </ButtonStyle>
            </dx:ASPxComboBox>
        </td>
        <td style="width: 10%">
            &nbsp;</td>
    </tr>
    <tr>
        <td style="width: 10%">
        </td>
        <td style="width: 80%">
            <dx:ASPxGridView ID="grvTV" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" Width="100%"
                OnAfterPerformCallback="grvTV_AfterPerformCallback">
                <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                <Columns>
                    <dx:GridViewBandColumn Caption="">
                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" Font-Size="15px" />
                        <HeaderCaptionTemplate>
                            SỐ LƯỢNG THÀNH VIÊN CHƯA THAM GIA HỆ THỐNG</HeaderCaptionTemplate>
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="User Name" VisibleIndex="1" 
                                FieldName="UserName" Width="10%">
                               
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Họ và tên" VisibleIndex="2" 
                                FieldName="Fullname" Width="20%">
                            </dx:GridViewDataTextColumn>
                             <dx:GridViewDataTextColumn Caption="Cấp bậc" VisibleIndex="5" FieldName="capbac">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Email" VisibleIndex="3" FieldName="email" 
                                Width="20%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Điện thoại" FieldName="phone" 
                             VisibleIndex="4" Width="10%">
                          
                            </dx:GridViewDataTextColumn>
                             <dx:GridViewDataTextColumn Caption="Địa chỉ" VisibleIndex="5" 
                                FieldName="address" Width="35%">
                            </dx:GridViewDataTextColumn>

                           
                            <dx:GridViewDataTextColumn Caption="Kích hoạt" VisibleIndex="6" Width="5%" Name="KH">
                            <DataItemTemplate>
                                <asp:HiddenField ID="hdfIdcha" runat="server" Value='<%# Eval("parentID") %>'/>
                                <asp:ImageButton ID="btnKichhoat" runat="server" 
                                    ImageUrl="~/admin/Images/approve.png" onclick="btnKichhoat_Click" />
                            </DataItemTemplate>
                                <CellStyle HorizontalAlign="Center">
                                </CellStyle>
                            </dx:GridViewDataTextColumn>

                        </Columns>
                    </dx:GridViewBandColumn>
                </Columns>
                <SettingsPager NumericButtonCount="100" PageSize="100">
                </SettingsPager>
                <Settings ShowFilterRow="True" ShowFilterRowMenu="True" />
                <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                    <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
                    </LoadingPanelOnStatusBar>
                    <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                    </LoadingPanel>
                </Images>
                <ImagesFilterControl>
                    <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                    </LoadingPanel>
                </ImagesFilterControl>
                <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                    </Header>
                    <LoadingPanel ImageSpacing="5px">
                    </LoadingPanel>
                </Styles>
                <StylesEditors ButtonEditCellSpacing="0">
                    <ProgressBar Height="21px">
                    </ProgressBar>
                </StylesEditors>
            </dx:ASPxGridView>
        </td>
        <td style="width: 10%">
        </td>
    </tr>
</table>
